home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / MineSweeper / Minesweeper.jar / minesweeper / MinesweeperMidlet.class (.txt)
Encoding:
Java Class File  |  2001-10-30  |  1.7 KB  |  62 lines

  1. package minesweeper;
  2.  
  3. import java.util.Timer;
  4. import javax.microedition.lcdui.Command;
  5. import javax.microedition.lcdui.CommandListener;
  6. import javax.microedition.lcdui.Display;
  7. import javax.microedition.lcdui.Displayable;
  8. import javax.microedition.lcdui.Form;
  9. import javax.microedition.midlet.MIDlet;
  10.  
  11. public class MinesweeperMidlet extends MIDlet implements CommandListener {
  12.    // $FF: renamed from: a minesweeper.MinesweeperMidlet
  13.    private static MinesweeperMidlet field_0 = null;
  14.    // $FF: renamed from: b b
  15.    public b field_1;
  16.    // $FF: renamed from: c c
  17.    public c field_2;
  18.    // $FF: renamed from: d java.util.Timer
  19.    public Timer field_3;
  20.  
  21.    public MinesweeperMidlet() {
  22.       field_0 = this;
  23.    }
  24.  
  25.    public void commandAction(Command var1, Displayable var2) {
  26.       this.field_1 = new b(this);
  27.       this.field_2 = new c(this.field_1);
  28.       this.field_3 = new Timer();
  29.       this.field_3.schedule(this.field_2, 1000L, 1000L);
  30.       Display.getDisplay(this).setCurrent(this.field_1);
  31.    }
  32.  
  33.    public void destroyApp(boolean var1) {
  34.    }
  35.  
  36.    public void pauseApp() {
  37.    }
  38.  
  39.    // $FF: renamed from: a () void
  40.    public static void method_0() {
  41.       field_0.destroyApp(true);
  42.       field_0.notifyDestroyed();
  43.       field_0 = null;
  44.    }
  45.  
  46.    // $FF: renamed from: b () void
  47.    public static void method_1() {
  48.       field_0.startApp();
  49.    }
  50.  
  51.    public void startApp() {
  52.       Form var1 = new Form("Minesweeper");
  53.       Command var2 = new Command("Proceed", 4, 1);
  54.       var1.append("By Francois Martin\n");
  55.       var1.append("Copyright 2001\n");
  56.       var1.append("Version 0.2\n");
  57.       ((Displayable)var1).setCommandListener(this);
  58.       ((Displayable)var1).addCommand(var2);
  59.       Display.getDisplay(this).setCurrent(var1);
  60.    }
  61. }
  62.